package com.example.Prototype;

import java.util.HashMap;
import java.util.Map;

public class ShapeCache {
    private static Map<String, Shape> map = new HashMap<String, Shape>();
    public static Shape getShape(String id) {
        return map.get(id);
    }
    public static void loadCache() {
        map.put("1", new Circle("1", "Circle"));
        map.put("2", new Rectangle("2", "Rectangle"));
        map.put("3", new Square("3", "Square"));
    }
}
